function MyCloseDialog() {
    app.lowValue1 = null; app.highValue1 = null;
    app.lowValue2 = null; app.highValue2 = null;
    app.lowValue3 = null; app.highValue3 = null;
    app.startTime1 = null; app.endTime1 = null;
    app.startTime2 = null; app.endTime2 = null;
    app.startTime3 = null; app.endTime3 = null;
    app.currentStatus = null;
    app.operationFormVisible_fan = false;
    app.operationFormVisible_Tem = false;
    app.operationFormVisible_chenAi = false;
    app.fanLevel = 1;
    app.fanDetailVo = null; //
    app.fanStartTime1 = null; app.fanStartTime2 = null; app.fanStartTime3 = null; // 离子风扇的自启动时间
    app.fanSleepTime1 = null;  app.fanSleepTime2 = null;  app.fanSleepTime3 = null; // 离子风扇的休眠时间
    app.fanCleanTime = null; // 离子风扇的清扫时间
    app.maintainTime = null; // 离子风扇的保养时间
    app.lowDYValue = null; // 平衡电压下限
    app.highDYValue = null; // 平衡电压上限
    app.lowFDZDYValue = null; // 放电针电压下限
    app.highFDZDYValue = null; // 放电针电压下限
    app.temLower = null ;
    app.temUpper = null ;
    app.humiLower = null ;
    app.humiUpper = null ;
    app.dzyDetailNew = null ;
    app.dustStatus = null ;
    app.dustParameters = null;
    app.sortFlag = false ;
    app.sortLineId = null;
    app.sortDeviceList = null ;
    app.sortLength = null ;
    app.findPage();
    app.isMOM1 = false ;
    app.isMOM2 = false ;
}

function handleOperation1(row) {
    app.deviceVo = row;
    app.change_gatewayId = row.gatewayId;
    app.activeName = "getStatus";
    app.line_radio = "1";
    app.dialogTitle = row.deviceTypeName + "操作" ;
    app.channelTypeList = null ;
    app.channelOnDT = null ;
    app.isMOM1 = (app.deviceVo.channelTypes[0].channelTypeName=='设备接地') ;
    app.isMOM2 = (app.deviceVo.channelTypes[1].channelTypeName=='设备接地') ;
    if (row.deviceTypeName === "接地电阻仪（3通道）") {
        app.operationFormVisible = true;
        app.isOld3Channel = true;
    } else if (row.deviceTypeName === "接地电阻仪（2通道）") {
        app.operationFormVisible = true;
        app.isOld3Channel = false;
    } else if (row.deviceTypeName === "旧版离子风扇") {
        app.operationFormVisible_fan = true;
        app.isNewFan = false;
    } else if (row.deviceTypeName === "新版离子风扇") {
        app.operationFormVisible_fan = true;
        app.isNewFan = true;
    }else if(row.deviceTypeName === "温湿度测量仪"){
        app.operationFormVisible_Tem = true;
        app.temDetail = {
            tem: null ,
            humi: null
        } ;
    }else if(row.deviceTypeName === "新版接地电阻仪（2通道）"){
        app.operationFormVisible_NewDZY = true;
    }else if(row.deviceTypeName === "新版接地电阻仪（4通道）"){
        app.operationFormVisible_NewDZY = true;
    }else if(row.deviceTypeName === "尘埃粒子计数器"){
        app.operationFormVisible_chenAi = true;
    }
}